Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect wallet button [interchain UI part 2] #1014

Merged
merged 4 commits into from
Apr 30, 2024
Merged

Conversation

grod220
Copy link
Collaborator

@grod220 grod220 commented Apr 30, 2024

Secures connection approval from user intending to do an IBC in. Also, the recent updates of interchain ui seem to have broken the dropdown component. Went ahead and swapped it out for shadcn/ui components.

compressed.mp4

@grod220 grod220 force-pushed the interchain-ui-part-2 branch from 95b6ae3 to ff845e9 Compare April 30, 2024 09:52
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Component completely broken after interchain deps update. Went ahead and swapped it out for https://ui.shadcn.com/docs/components/combobox

@@ -55,6 +55,7 @@ export const IbcChainProvider = ({ registry, children }: IbcProviderProps) => {
},
}}
signerOptions={signerOptions}
modalTheme={{ defaultTheme: 'light' }}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the default changed to dark. Forcing the light theme here.

@@ -11,7 +11,7 @@ export const IbcInForm = () => {
}}
>
<InterchainUi />
<Button type='submit' variant='onLight'>
<Button type='submit' variant='onLight' disabled>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Disabling until we get to the end of building this flow

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -8,12 +8,12 @@ export const IbcLayout = () => {
<>
<div className="fixed inset-0 z-[-100] size-full bg-[url('penumbra-logo.svg')] bg-[length:160vmax] bg-fixed bg-[top_50%_left_25vw] bg-no-repeat" />
<div className='flex flex-1 flex-col gap-4 md:flex-row md:place-content-around'>
<Card light className='relative overflow-visible md:self-start'>
<Card light className='relative z-10 overflow-visible md:self-start'>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So arrows don't overlap on top

<LongArrowIcon
direction='right'
// Negative calculated margin giving lint issue
/* eslint-disable-next-line tailwindcss/enforces-negative-arbitrary-values */
className='invisible absolute inset-y-0 right-0 my-auto -mr-[calc(30vw-3px)] size-[30vw] text-stone-300 md:visible'
className='invisible absolute -top-44 right-0 z-0 -mr-[calc(30vw-3px)] size-[30vw] text-stone-300 md:visible'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Relocated the arrows to be fixed versus floating in the middle of the card. That way, as the card changes size the arrows don't move.

Copy link
Contributor

@Valentine1898 Valentine1898 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
I think that we should strive to make the IBC interface more intuitive for the user (like it is done by osmosis)
https://jam.dev/c/31161dd4-c42d-45c5-9357-c5ec177264a4

@grod220
Copy link
Collaborator Author

grod220 commented Apr 30, 2024

Definitely agree @Valentine1898, ideally we can later have a designer make this flow much nicer

@grod220 grod220 merged commit d03bb8c into main Apr 30, 2024
6 checks passed
@grod220 grod220 deleted the interchain-ui-part-2 branch April 30, 2024 12:04
@grod220 grod220 mentioned this pull request Apr 30, 2024
18 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants